using System;
using System.ComponentModel;
using System.Xml.Serialization;

namespace com.exceptionalsoftware.spacetime.KML
{
	[Serializable()]
    [XmlType(TypeName = "ScreenOverlayType")]
	public class ScreenOverlay : Overlay
	{
		private Vec2Type overlayVector, screenVector, rotationVector, sizeVector;
        private float rotationField;

        public ScreenOverlay()
		{
            this.rotationField = 0;
		}

        [XmlElement(ElementName = "rotation", DataType = "float")]
        [DefaultValue(0F)]
        public float Rotation
        {
            get { return this.rotationField; }
            set { this.rotationField = value; }
        }
     
        [XmlElement(ElementName = "overlayXY", Type = typeof(Vec2Type))]
        public Vec2Type OverlayXY
        {
            get { return this.overlayVector; }
            set { this.overlayVector = value; }
        }

        [XmlElement(ElementName = "screenXY", Type = typeof(Vec2Type))]
        public Vec2Type ScreenXY
        {
            get { return this.screenVector; }
            set { this.screenVector = value; }
        }

        [XmlElement(ElementName = "rotationXY", Type = typeof(Vec2Type))]
        public Vec2Type RotationXY
        {
            get { return this.rotationVector; }
            set { this.rotationVector = value; }
        }

        [XmlElement(ElementName = "size", Type = typeof(Vec2Type))]
        public Vec2Type Size
        {
            get { return this.sizeVector; }
            set { this.sizeVector = value; }
        }
    }
}